export default Object.freeze({
  course_teacher_id: [{ required: true, message: "授课老师不能为空", trigger: "change" }],
  course_name: [{ required: true, message: "课程名称不能为空", trigger: "blur" }],
  course_grade: [{ required: true, message: "课程年级不能为空", trigger: "blur" }],
  // 请求用得参数
  course_time: [
    { required: true, message: "课程时间不能为空", trigger: "change" },
    {
      pattern: /[1-5]-[0-9]-[1-4]/,
      message: "课程时间输入错误",
      trigger: "change",
    },
  ],
  course_location: [{ required: true, message: "课程地址不能为空", trigger: "blur" }],
  course_credit: [{ required: true, message: "学分不能为空", trigger: "blur" }],
  course_max_size: [{ required: true, message: "座位数不能为空", trigger: "blur" }],
  course_exam_date: [{ required: true, message: "考试时间不能为空", trigger: "change" }],
  course_exam_location: [{ required: true, message: "考试地点不能为空", trigger: "blur" }],
});
